package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author minamiyama
 * @date 2025/5/19 11:10
 *  首页聚合商品实体类
 */
@Data
@TableName("t_mall_home_goods")
public class MallHomeGoods {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("goods_id")
    private Long goodsId;

    @TableField("brand_name")
    private String brandName;

    @TableField("goods_image")
    private String goodsImage;

    @TableField("goods_name")
    private String goodsName;

    @TableField("price")
    private Long price;

    @TableField("ys_coin_discount")
    private String ysCoinDiscount;

    @TableField("goods_send_method")
    private String goodsSendMethod;

    @TableField("stock")
    private Integer stock;

    @TableField("menu_no")
    private String menuNo;

    @TableField("put_up_area_no")
    private String putUpAreaNo;

    @TableField("home_group_no")
    private String homeGroupNo;

    @TableField("dis_area_no")
    private String disAreaNo;

    @TableField("is_sticky")
    private Integer isSticky;

    @TableField("is_main_area_dis")
    private Integer isMainAreaDis;

    @TableField("version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}
